package repository;

import java.util.List;

import javax.ejb.Local;

import model.Role;
import model.User;
import repository.exceptions.RepositoryException;

@Local
public interface UserRepository extends BaseRepository<User, Long> {

	User getUserByUsername(String username) throws RepositoryException;
	
	List<Role> getRolesForUser(Long id) throws RepositoryException;
	
	List<User> getAllActiveUsers() throws RepositoryException;

}
